package com.cn.worldex.commontask.entity;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class ResponseData implements Serializable {
    @JsonAlias("Items")
    private Items items;
    @JsonAlias("TotalBackupSize")
    private String totalBackupSize;
    @JsonAlias("PageNumber")
    private int pageNumber;
    @JsonAlias("TotalRecordCount")
    private int totalRecordCount;
    @JsonAlias("RequestId")
    private String requestId;
    @JsonAlias("pageRecordCount")
    private int PageRecordCount;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class  Items{
        @JsonAlias("Backup")
        private List<Backup> backup;
        @Data
        @JsonIgnoreProperties(ignoreUnknown = true)
        public static class  Backup{
           @JsonAlias("StoreStatus")
           private String storeStatus;
           @JsonAlias("HostInstanceID")
           private String hostInstanceID;
            @JsonAlias("BackupEndTime")
           private String backupEndTime;
            @JsonAlias("BackupDownloadURL")
           private String backupDownloadURL;
        }
    }
}
